#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

typedef int HPDateType;


typedef struct Heap
{
	HPDateType* date;
	int _size;
	int _capacity;
}Heap;


void HeapInit(Heap* php, HPDateType* a, int n);
void HeapSort(Heap* php, int n);
void HeapPrint(Heap* php, int n);
void HeapDestroy(Heap* php);
void HeapPush(Heap* php , HPDateType x);
void HeapPop(Heap* php);

